`timescale 1ns / 1ps

//////////////////////////////////////////////////////////////////////
////                                                              //// 
////                                                              //// 
////  Parte del proyecto "Controlador de luces de un semaforo"    ////  
////                                                              ////
////                                                              //// 
////  Description                                                 //// 
////   - Controlar las luces de un semaforo  como parte del       ////
////     curso de taller de diseo digital (ITCR)                  ////  
////                                                              //// 
////  To Do:                                                      //// 
////                                                              //// 
////  Author(s):                                                  //// 
////      - Sergio Gonzalez Q, sergiogq@hotmail.es                ////
////      - Alejandro Morales A, ale3191@gmail.com                //// 
////                                                              //// 
////////////////////////////////////////////////////////////////////// 
////                                                              //// 
//// Copyright (C) 2009 Authors and OPENCORES.ORG                 //// 
////                                                              //// 
//// This source file may be used and distributed without         //// 
//// restriction provided that this copyright statement is not    //// 
//// removed from the file and that any derivative work contains  //// 
//// the original copyright notice and the associated disclaimer. //// 
////                                                              //// 
//// This source file is free software; you can redistribute it   //// 
//// and/or modify it under the terms of the GNU Lesser General   //// 
//// Public License as published by the Free Software Foundation; //// 
//// either version 2.1 of the License, or (at your option) any   //// 
//// later version.                                               //// 
////                                                              //// 
//// This source is distributed in the hope that it will be       //// 
//// useful, but WITHOUT ANY WARRANTY; without even the implied   //// 
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //// 
//// PURPOSE.  See the GNU Lesser General Public License for more //// 
//// details.                                                     //// 
////                                                              //// 
//// You should have received a copy of the GNU Lesser General    //// 
//// Public License along with this source; if not, download it   //// 
//// from http://www.opencores.org/lgpl.shtml                     //// 
////                                                              ////
//////////////////////////////////////////////////////////////////////

module tb_Walk_Register;

	// Inputs
	reg clk_i;
	reg rst_i;
	reg request_i;
	reg WR_rst_i;

	// Outputs
	wire WR_o;

	// Instantiate the Unit Under Test (UUT)
	Walk_Register tb_WR(
		.clk_i(clk_i), 
		.rst_i(rst_i), 
		.request_i(request_i), 
		.WR_rst_i(WR_rst_i), 
		.WR_o(WR_o)
	);

	initial begin
		clk_i = 0;
		forever begin
			clk_i = ~clk_i;
			#20;
		end
	end
	
	initial begin
		// Initialize Inputs
		clk_i = 0;
		rst_i = 0;
		request_i = 0;
		WR_rst_i = 0;

		// Wait 100 ns for global reset to finish
		#100;
        
		// Add stimulus here
		
		request_i = 1;
		
		#200
		
		WR_rst_i = 1;
		
		#200
		request_i = 1;
	end
      
endmodule

